package com.sh.data.engine.domain.common.service;

import com.sh.data.engine.domain.common.model.domain.TagDomain;

import java.util.Collection;
import java.util.List;

/**
 * @author : changkong
 * @date : 2023/6/7
 */
public interface TagService {

    Long saveNewTag(TagDomain tagDomain);

    void saveTag(TagDomain tagDomain);

    List<Long> getTagBizIdList(Long projectId, Integer tagType, Long id);

    Collection<Long> getTagBizIdPage(
        Long projectId, Integer tagType, Long id, Integer pageNum, Integer pageSize);

    void deleteTag(Long projectId, Long id);

    List<TagDomain> getTagListByApiId(Long projectId, Long id);

    void saveApiTagById(Long apiId, List<Long> addTagList, List<Long> deleteTagList);
}
